package com.service.Impl;

import com.dao.ApplyDao;
import com.entity.Apply;
import com.entity.User;
import com.service.ApplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.ui.ModelMap;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

@Service
public class ApplyServiceImpl implements ApplyService {

    @Autowired
    private ApplyDao applyDao;

    @Override
    public List<Apply> userApplyList(Apply apply) {
        return applyDao.userApplyList(apply);
    }

    @Override
    public Apply applyInfo(Apply apply) {
        return applyDao.applyInfo(apply);
    }

    @Override
    public List<Apply> userRepayList(Apply apply) {
        return applyDao.userRepayList(apply);
    }

    @Override
    public void userDoApply(Apply apply) { applyDao.userDoApply(apply); }

    @Override
    public void userReDoApply(Apply apply) { applyDao.userReDoApply(apply); }

    @Override
    public void userDoEditApply(Apply apply) { applyDao.userDoEditApply(apply); }

    @Override
    public void userDeleteApply(Apply apply) {
        applyDao.userDeleteApply(apply);
    }

    @Override
    public void userRepay(Apply apply) { applyDao.userRepay(apply); }

    @Override
    public List<Apply> adminApplyList() { return applyDao.adminApplyList();}

    @Override
    public void adminGrantApply(Apply apply) { applyDao.adminGrantApply(apply); }

    @Override
    public List<Apply> adminAuditApply() { return applyDao.adminAuditApply(); }

    @Override
    public void adminDoAuditApply(Apply apply) { applyDao.adminDoAuditApply(apply);}

    @Override
    public void adminDoRejectApply(Apply apply) { applyDao.adminDoRejectApply(apply);}

    @Override
    public List<Apply> adminRepayList() { return applyDao.adminRepayList(); }

    @Override
    public void userConfirmReceiptApply(Apply apply) { applyDao.userConfirmReceiptApply(apply); }

    @Override
    public void adminConfirmReceiptApply(Apply apply) { applyDao.adminConfirmReceiptApply(apply); }

}
